/*
 * Sidebar
 */

/* Hide for mobile, show later */
.sidebar {
    display: none;
    background-color: white!important;
}
.sidebar ul.collapse{
    width: 100%;
    padding: 0;
    margin: 0;
}
.sidebar ul.collapsing{
    width: 100%;
    padding: 0;
    margin: 0;
}

.level2 a{
    padding-left: 40px!important;
}
.level3 a{
    padding-left: 60px!important;
}
.level4 a{
    padding-left: 80px!important;
}
.level5 a{
    padding-left: 100px!important;
}
.level6 a{
    padding-left: 120px!important;
}

@media (min-width: 768px) {
    .sidebar {
        position: fixed;
        top: 51px;
        bottom: 0;
        left: 0;
        z-index: 1000;
        display: block;
        padding: 20px;
        overflow-x: hidden;
        overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
        background-color: #f5f5f5;
        border-right: 1px solid #eee;
    }
}

/* Sidebar navigation */
.nav-sidebar {
    margin-right: -21px; /* 20px padding + 1px border */
    margin-bottom: 20px;
    margin-left: -20px;
}
.nav-sidebar > li > a {
    padding: 5px 20px;
    color: #2697ed;
}
.nav-sidebar > .active > a,
.nav-sidebar > .active > a:hover,
.nav-sidebar > .active > a:focus {
    color: #2697ed;
    background-color: #ccc;
    border-radius: 0 50px 50px 0;
}

.nav-sidebar a:hover{
    color: #2697ed;
    background-color: #E8F0FE!important;
    border-radius: 0 50px 50px 0!important;
}
.nav-sidebar a:focus{
    color: #2697ed;
    background-color: white!important;
    border-radius: 0 50px 50px 0!important;
}
.nav-sidebar a.active {
    color: #2697ed!important;
    background-color: #E8F0FE!important;
    border-radius: 0 50px 50px 0!important;
}
